<!DOCTYPE html>
<html>

<head>
	{% block head %}
	<meta charset="utf-8">
	<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
	<META name="author" content="marsggbo@foxmail.com">
    <META NAME="description" CONTENT="贺鑫的个人博客MARSGGBO">
    <META NAME="keywords" CONTENT="Blog,MARSGGBO,Python,程序员">
    <meta name="robots" content="index,follow" /> <!-- 搜索引擎抓取 -->
    <link rel="alternate" type="application/rss+xml" title="RSS" href="/rss.xml" />
    <link rel="shortcut icon" type="image/ico" href="../static/imgs/favicon.ico" />
    <title>
		{% block title%}
		{% endblock %}
	</title>
	<style type="text/css">
		.nav-left{
			float: left;
		}
		.nav-right{
			float: right;
			height: 50px;
			padding: 15px;
			font-weight: bold;
		}
		.login a{
			color: #9d9d9d;
		}
		.login a:hover{
			color: white;
			text-decoration: none;	
		}
		{% block style %}
		{% endblock %}
	</style>
	<link rel="stylesheet" type="text/css" href="../static/bootstrap.min.css">
	{% endblock %}
</head>

<body>
	{% block navbar %}
	<div class="navbar navbar-inverse" role="navigation">
		<div class="container" style="float: left;">
			<div class="nav-left navbar-collapse collapse">
				<ul class="nav navbar-nav" >
					<li><a href="/">Home</a></li>
					<li><a href="/categories">Categories</a></li>
					<li><a href="/archives">Archives</a><li>
					<li><a href="/tags">Tags</a><li>
					<li><a href="/edit">Edit</a><li>
					<li><a href="/test">Test</a><li>
					<li><a href="/about">About</a><li>

               		<li>
               			<form class="navbar-form navbar-right" action="#" role="search">
							<div class="form-group">
							  <div class="input-group">
							    <input class="form-control" id="navbarInput-01" type="search" placeholder="Search">
							    <span class="input-group-btn">
							      <button type="submit" class="btn"><span class="fui-search"></span></button>
							    </span>
							  </div>
							</div>
						</form>
               		</li>
				</ul>
			</div>
		</div>
		<span class="login" style="position:absolute;right:0;padding-top: 15px;padding-bottom: 15px;padding-right: 10px;">
			{% if current_user.is_authenticated() %}
            <a  class="text-right" href="{{ url_for('logout') }}">Logout</a>
			{% else %}
            <a  class="text-right" href="{{ url_for('login') }}">Login</a>
			{% endif %}
		</span>
	</div>
	{% endblock %}

	{% block content %}
	<div class="container">
		{% block page_content %}{% endblock %}
	</div>
	{% endblock %}
</body>
</html>